#! /bin/bash

num=0
sum=0
while [ $num -lt 100 ]
do
    num=`expr $num + 1`
    echo "num = $num"
    sum=`expr $sum + $num`
done
    echo "sum = $sum"
